import request from '@/utils/request'

// 查询用户提现记录列表
export function listWithdrawRecord(query) {
  return request({
    url: '/biz/withdrawRecord/list',
    method: 'get',
    params: query
  })
}


// 查询用户提现记录列表
export function getUserWithdrawList(query) {
  return request({
    url: '/biz/withdrawRecord/getUserWithdrawList',
    method: 'get',
    params: query
  })
}

// 查询用户提现记录详细
export function getWithdrawRecord(id) {
  return request({
    url: '/biz/withdrawRecord/' + id,
    method: 'get'
  })
}

// 新增用户提现记录
export function addWithdrawRecord(data) {
  return request({
    url: '/biz/withdrawRecord',
    method: 'post',
    data: data
  })
}

// 修改用户提现记录
export function updateWithdrawRecord(data) {
  return request({
    url: '/biz/withdrawRecord',
    method: 'put',
    data: data
  })
}

// 删除用户提现记录
export function delWithdrawRecord(id) {
  return request({
    url: '/biz/withdrawRecord/' + id,
    method: 'delete'
  })
}

// 启用禁用用户提现记录
export function changeStatus(data) {
  return request({
    url: '/biz/withdrawRecord/changeStatus',
    method: 'put',
    data: data
  })
}
// 审核
export function audit(data) {
  return request({
    url: '/biz/withdrawRecord/audit',
    method: 'post',
    data: data
  })
}

// 查询用户转赠记录列表
export function getUserGiveAwayList(query) {
  return request({
    url: '/biz/giveAwayRecord/getUserGiveAwayList',
    method: 'get',
    params: query
  })
}
// 查询用户充值记录列表
export function getUserRechargeList(query) {
  return request({
    url: '/biz/recharge/getUserRechargeList',
    method: 'get',
    params: query
  })
}
